Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | "use strict"; |
||
5 | module.exports = (bullet, arg) => { |
||
6 | |||
7 | const isArray = Array.isArray (arg), |
||
8 | lines = isArray ? arg : arg.split ('\n'), |
||
9 | indent = blank (bullet), |
||
10 | result = lines.map ((line, i) => (i === 0) ? (bullet + line) : (indent + line)) |
||
11 | |||
12 | return isArray ? result : result.join ('\n') |
||
13 | } |